package com.smartpro.mis.modular.system.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author mengiy123
 * @since 2019-05-07
 */
@TableName("user")
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户编号
     */
    @TableId(value = "userID", type = IdType.AUTO)
    private Integer userID;
    /**
     * 微信昵称
     */
    private String nickName;
    /**
     * 头像
     */
    private String headImage;
    /**
     * 手机号
     */
    private String mobile;
    /**
     * 微信号
     */
    private String wechat;
    /**
     * 密码
     */
    private String password;
    /**
     * 孩子姓名
     */
    private String childName;
    /**
     * 孩子性别，0:男，1:女
     */
    private Integer gender;
    /**
     * 孩子生日
     */
    private String childBirthday;
    /**
     * 所在省
     */
    private String province;
    /**
     * 所在市
     */
    private String city;
    /**
     * 邮寄住址
     */
    private String address;
    /**
     * 标签
     */
    private String tags;
    /**
     * 角色,0:普通用户,1:推广员,2:运营人员
     */
    private String role;
    /**
     * 购买次数
     */
    private Integer purchaseTimes;
    /**
     * 成交总额
     */
    private BigDecimal totalAmount;
    /**
     * 新建时间
     */
    private String createTime;
    /**
     * 修改时间
     */
    private String modifyTime;
    /**
     * 操作员id
     */
    private Integer operaterID;


    public Integer getUserID() {
        return userID;
    }

    public void setUserID(Integer userID) {
        this.userID = userID;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getHeadImage() {
        return headImage;
    }

    public void setHeadImage(String headImage) {
        this.headImage = headImage;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getChildName() {
        return childName;
    }

    public void setChildName(String childName) {
        this.childName = childName;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getChildBirthday() {
        return childBirthday;
    }

    public void setChildBirthday(String childBirthday) {
        this.childBirthday = childBirthday;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public Integer getPurchaseTimes() {
        return purchaseTimes;
    }

    public void setPurchaseTimes(Integer purchaseTimes) {
        this.purchaseTimes = purchaseTimes;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Integer getOperaterID() {
        return operaterID;
    }

    public void setOperaterID(Integer operaterID) {
        this.operaterID = operaterID;
    }

    @Override
    protected Serializable pkVal() {
        return this.userID;
    }

    @Override
    public String toString() {
        return "User{" +
        "userID=" + userID +
        ", nickName=" + nickName +
        ", headImage=" + headImage +
        ", mobile=" + mobile +
        ", wechat=" + wechat +
        ", password=" + password +
        ", childName=" + childName +
        ", gender=" + gender +
        ", childBirthday=" + childBirthday +
        ", province=" + province +
        ", city=" + city +
        ", address=" + address +
        ", tags=" + tags +
        ", role=" + role +
        ", purchaseTimes=" + purchaseTimes +
        ", totalAmount=" + totalAmount +
        ", createTime=" + createTime +
        ", modifyTime=" + modifyTime +
        ", operaterID=" + operaterID +
        "}";
    }
}
